<%@ page import="book.zone.log.Logger" %>
<%@ page import="java.util.Map" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<%!
    int product_id;
%>
<%
    this.product_id = Integer.valueOf(request.getParameter("product_id"));
%>
    <sql:query var="rs" dataSource="jdbc/bookzone">
        select BOOKS.*, PRICES.book_price FROM BOOKS JOIN PRICES ON BOOKS.book_id = PRICES.book_id AND BOOKS.book_id = <%= this.product_id%> 
    </sql:query>
<head>
    <title>
        <c:forEach var="row" items="${rs.rows}">
            ${row.title}        
        </c:forEach>
    </title>
    <link rel="stylesheet" href="css/styles.css" type="text/css">
</head>
<body>
    <div class="outer">
            <div class="container">
                <%@ include file="header.jsp"%>
                <div>
                    <br clear="all"/>
                <%@ include file="book_item.jsp"%>
                </div>
            </div>
    </div>
</body>
</html>
